don't limit simplify count maximum in GUI (#721)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Mon, 20 Sep 2021 16:18:40 +0000 (10:18 -0600)
committerGitHub <noreply@github.com>
Mon, 20 Sep 2021 16:18:40 +0000 (10:18 -0600)
gui/filterwidgets.cc
gui/rttrkui.ui

index adf57dfe33af194bcb2cc031a103121cf7b5d5b0..a71ab88b494b94ea18edc8574060786e7d209ff2 100644 (file)
@@ -21,6 +21,7 @@
 //
 
 #include "filterwidgets.h"
+#include <limits>
 
 
 //------------------------------------------------------------------------
@@ -213,7 +214,7 @@ RtTrkWidget::RtTrkWidget(QWidget* parent, RtTrkFilterData& rfd): FilterWidget(pa
 
   fopts << new BoolFilterOption(rfd.simplify_, ui.simplifyCheck);
   fopts << new BoolFilterOption(rfd.reverse_, ui.reverseCheck);
-  fopts << new IntSpinFilterOption(rfd.limitTo_, ui.limitToSpin, 1, 5000);
+  fopts << new IntSpinFilterOption(rfd.limitTo_, ui.limitToSpin, 1, std::numeric_limits<int>::max());
   setWidgetValues();
   checkChecks();
 }
index 7ccad8db593afa4c5c3801083d8d541f4b1890a5..bb254304f6eee2cdc08293e082ccf99545f07407 100644 (file)
@@ -88,6 +88,9 @@ The quality of the results will vary depending on the density of points in the o
        <property name="toolTip">
         <string>Maximum number points in track or route. </string>
        </property>
+       <property name="stepType">
+        <enum>QAbstractSpinBox::AdaptiveDecimalStepType</enum>
+       </property>
       </widget>
      </item>
      <item>